{
  "builders": [
    {
      "changes": [
        "ENV PATH /px/bin:/opt/google-cloud-sdk/bin:/opt/px_dev/bin:/opt/px_dev/tools/golang/bin:/opt/px_dev/tools/node/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
        "ENV GOPATH /px",
        "WORKDIR /px/src/px.dev/pixie",
        "ENTRYPOINT [\"\"]"
      ],
      "commit": true,
      "image": "{{ user `base_image_and_tag` }}",
      "type": "docker"
    }
  ],
  "post-processors": [
    [
      {
        "repository": "{{ user `generated_image_repository` }}",
        "tags": [
          "{{ user `generated_image_tag` }}"
        ],
        "type": "docker-tag"
      },
      "docker-push"
    ]
  ],
  "provisioners": [
    {
      "inline": [
        "apt-get -y update; apt-get install -y curl"
      ],
      "type": "shell"
    },
    {
      "cookbook_paths": [
        "cookbooks"
      ],
      "prevent_sudo": true,
      "roles_path": "roles",
      "run_list": [
        "recipe[px_dev_extras]"
      ],
      "type": "chef-solo",
      "version": "17.8.25"
    },
    {
      "inline": [
        "rm -rf /tmp/*",
        "rm -rf /opt/chef",
        "rm -rf /var/lib/apt/lists/*"
      ],
      "type": "shell"
    }
  ],
  "variables": {
    "base_image_and_tag": "",
    "generated_image_repository": "",
    "generated_image_tag": ""
  }
}
